package com.ct.application.order.async;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class OrderAsyncService {

    @Async
    public  void sendMessage(Long userId){
        log.info("发消息订单下单成功，用户是：{}", userId);
    }

    @Async("taskExecutor2")
    public  void socreGet(Long userId){
        log.info("赠送积分成功，用户是：{}", userId);
    }
}
